package com.lagou.dao;

import com.lagou.anotations.Param;
import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;


    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //根据条件进行用户查询
    public User findByCondition2(@Param("id") int id, @Param("username") String username) throws Exception;

    // 更新用户
    void updateUserByCondition(User user) throws Exception;

    // 新增用户
    void insertUser(User user) throws Exception;

    // 删除用户
    void deleteUser(@Param("id") int id) throws Exception;


}
